Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | const targets = Array.from(document.body.querySelectorAll('input[data-mapsfield=mapsfield]')); |
||
17 | component.types.forEach((type) => { |
||
18 | const field = document.getElementById(type); |
||
19 | if (field) { |
||
20 | field.setAttribute('value', component.long_name); |
||
21 | field.dispatchEvent(event); |
||
22 | } |
||
23 | }); |
||
24 | }); |
||
35 | } |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.